<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
 <%@taglib prefix="s" uri="/struts-tags"%>
 <%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
	<div>
					<ul>
						<li><a href="javaScript:" onclick="btn_add_news()">添加新闻</a></li>
					
						<li><a href="javaScript:" onclick="btn_add_newsTopic()">添加主题</a></li>
					
						<li><a href="doEditTopic" >修改主题</a></li>
					
					</ul>
				</div>
			
				<div id="add_news">
					<input type="hidden" id="add_news_author" value="${sessionScope.user.loginName }"/>
					<table>
						<tr>
							<td>主题:</td>
							<td align="left">
								<select id="add_news_topic_id">
									<s:iterator id="var_topic" value="#request.topicList">
										<option value="${var_topic.id }">${var_topic.name }</option>
									</s:iterator>
								</select>
							</td>
						</tr>
						<tr>
							<td>标题:	</td>
							<td align="left"><input type="text" id="add_news_news_title"/></td>
						</tr>
						<tr>
							<td>摘要:	</td>
							<td align="left"><textarea rows="10" cols="50" id="add_news_news_summary"></textarea></td>
						</tr>
						<tr>
							<td>内容:	</td>
							<td align="left"><textarea rows="20" cols="100" id="add_news_news_content"></textarea></td>
						</tr>
						<tr>
							
							<td colspan="2" align="center"><input type="button" value="提交" onclick="add_news_submit()" /></td>
						</tr>
					</table>
					
				</div>
				<div id="add_newsTopic">
					主题:<input type="text" id="add_topic_topic_name"/>
					
					<input type="button" value="提交" onclick="add_newsTopic_submit()"/>
				</div>
</body>
</html>